package top.whysu.edevice.dto.manage;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 凭证组新增关联账号
 */
public class AssignAccountAddDTO {
    /**
     * 凭证组id
     */
    @NotNull(message = "凭证组id不能为空！")
    private BigDecimal voucherId;
    /**
     * 账号
     */
    @NotBlank(message = "要关联的账号不能为空！")
    private String username;

    public BigDecimal getVoucherId() {
        return voucherId;
    }

    public void setVoucherId(BigDecimal voucherId) {
        this.voucherId = voucherId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
